import request from "../../utils/request"
Page({

  /**
   * 页面的初始数据
   */
  data: {
    videoGroupList:[],//nav数据
    currentIndex:0,//当前nav所对应的index
    navId: '', // 导航的标识方便请求video数据
    videoId:'',//当前播放视频的id
    videoGroup:[],//视频列表数据
    videoUpdateTime: [], // 记录video播放的时长
    isTriggered:false//下拉刷新的关闭与开启
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.getvideoGroupList();
  },
  //获取视频标签列表
  async getvideoGroupList(){
    let videoGroupList = await request("/video/group/list")
    this.setData({
      videoGroupList: videoGroupList.data.slice(0, 14),
      navId: videoGroupList.data[0].id
    })
  
    // 获取视频列表数据（初始化下标为0的数据）
    this.getVideoGroup(this.data.navId);
  },
 
  //获取视频标签下对应的视频数据  1.需要先登录 2.发请求的时候需要携带cookie
  async getVideoGroup(id){
    let videoGroup = await request("/video/group",{id})
    wx.hideLoading()
    let index = 0;

    let videoList = videoGroup.datas.map(item =>{
    item.id = index++;
    return item 
    })
    this.setData({
      videoGroup:videoList,
      isTriggered:false
    })

    if(videoGroup.code === 301){
      wx.showToast({
        title: '请先登录',
        icon:"error"
      })
    }
  },

  //切换nav导航
  changeNav(event){
    const currentIndex = event.currentTarget.dataset.currentindex;
    this.setData({
      currentIndex,
      navId:this.data.videoGroupList[currentIndex].id
    })
    //将上一次的视频数据清空
    this.setData({
      videoGroup:[]
    })
    //显示正在加载动画
    wx.showLoading({
      title: '正在加载···',
    })
    // 获取不同的视频列表数据
    this.getVideoGroup(this.data.videoGroupList[currentIndex].id);
  
  },
 
  /**
   *  1.结束多个视频同时播放的问题（单例模式解决，通过一个变量来控制创建多个对象）
   *    当前的视频播放时，将上一个进行关闭（注意同一个视频播放与暂停）
   *  2.实现再次播放跳转到指定位置的功能
   * 
   */ 
  //视频开始/继续播放的回调
  handlePlay(event){
    const vid = event.currentTarget.id;
    //上个视频vid 与 当前视频 vid 不同时 将视频停掉
    // this.vid !== vid && this.videoContent && this.videoContent.stop();
    // this.vid = vid;
    //设置当前被点击的视频id
    this.setData({
      videoId:vid
    })
    //性能优化  ： 视频列表中只会有一个视频任务则不需要考虑多个视频同时播放的问题
    this.videoContent = wx.createVideoContext(vid);
    //让视频自动播放(判断该视频是否需要重新播放)
    const {videoUpdateTime} = this.data
    let videoItem = videoUpdateTime.find(item => item.vid === vid)
    if(videoItem){//进行跳转播放
      this.videoContent.seek(videoItem.currentTime)
    }
    this.videoContent.play();
  },
  //播放进度变化的回调
  handleTimeUpdate(event){
    const {currentTime} = event.detail; //单位：s 当前视频播放的时间
    const {videoUpdateTime} = this.data; //存储的数组

    let videoItem = videoUpdateTime.find(item => item.vid === event.currentTarget.id)
    // console.log(videoItem)
    if(videoItem){ //如果数组中含有该视频元素的vid直接修改所对应的currentTime即可
      videoItem.currentTime = currentTime;
    }else{
      videoUpdateTime.push({
        vid:event.currentTarget.id,
        currentTime
      })
    }

    this.setData({
      videoUpdateTime 
    })
  },
  //监听视频播放结束
  handleEnd(event){
    //当视频播放结束的时候，应当重新播放视频（从videoUpdateTime数组中删除掉已经播放结束的数组项）
    const {videoUpdateTime} = this.data;
    const vid = event.currentTarget.id;
    const index = videoUpdateTime.findIndex(item => item.vid === vid);
    videoUpdateTime.splice(index,1)
    this.setData({
      videoUpdateTime
    })
  },
  //自定义下拉刷新的回调
  handleRefresherRefresh(){
    console.log("下拉刷新触发")
    this.getVideoGroup(this.data.navId);
  },
  //上拉触底加载
  handleScrollToLower(){
    console.log("上拉触底!")
    //因为网易云音乐并没有提供上拉加载更多的api，在此仅仅是模拟
    let newVideoList =  [
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_7A6C6E9D7EF1407C94E02755B2614EE6",
                "coverUrl": "https://p2.music.126.net/GnGnHdK-L36ySBaNNZG7sw==/109951163570543741.jpg",
                "height": 540,
                "width": 954,
                "title": "十大中文金曲《烈焰红唇》梅艳芳 天啊这二米三的大长腿",
                "description": null,
                "commentCount": 613,
                "shareCount": 740,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 30097646
                    },
                    {
                        "resolution": 480,
                        "size": 48905897
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 460000,
                    "authStatus": 0,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/1dR9Soabgjjx-TIBff2q4w==/109951163704390643.jpg",
                    "accountStatus": 0,
                    "gender": 0,
                    "city": 460100,
                    "birthday": 936291259695,
                    "userId": 356777456,
                    "userType": 204,
                    "nickname": "港圈王祖贤",
                    "signature": "伤春悲秋 念旧",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 109951163704390640,
                    "backgroundImgId": 109951164462718380,
                    "backgroundUrl": "http://p1.music.126.net/mdCPrs2bt4ZSONYRRZ7CnQ==/109951164462718384.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": {
                        "1": "音乐视频达人",
                        "2": "生活图文达人"
                    },
                    "djStatus": 10,
                    "vipType": 11,
                    "remarkName": null,
                    "avatarImgIdStr": "109951163704390643",
                    "backgroundImgIdStr": "109951164462718384"
                },
                "urlInfo": {
                    "id": "7A6C6E9D7EF1407C94E02755B2614EE6",
                    "url": "http://vodkgeyttp9.vod.126.net/cloudmusic/wWqCg9cp_1999317042_hd.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=uHeedhXeIrFdxHCqaYKiqVWeGiqctmKv&sign=c6f182bedf7826a02e82e81ab90c87cf&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 48905897,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 480
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 57105,
                        "name": "粤语现场",
                        "alg": null
                    },
                    {
                        "id": 57108,
                        "name": "流行现场",
                        "alg": null
                    },
                    {
                        "id": 1100,
                        "name": "音乐现场",
                        "alg": null
                    },
                    {
                        "id": 5100,
                        "name": "音乐",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": null,
                "relateSong": [
                    {
                        "name": "烈焰红唇",
                        "id": 120869,
                        "pst": 0,
                        "t": 0,
                        "ar": [
                            {
                                "id": 8918,
                                "name": "梅艳芳",
                                "tns": [],
                                "alias": []
                            }
                        ],
                        "alia": [],
                        "pop": 95,
                        "st": 0,
                        "rt": "",
                        "fee": 8,
                        "v": 12,
                        "crbt": null,
                        "cf": "",
                        "al": {
                            "id": 11712,
                            "name": "伦流转",
                            "picUrl": "http://p4.music.126.net/ZIbeXiOtNwVLc8ogYx38rw==/17985811207419794.jpg",
                            "tns": [],
                            "pic_str": "17985811207419794",
                            "pic": 17985811207419794
                        },
                        "dt": 227400,
                        "h": {
                            "br": 320000,
                            "fid": 0,
                            "size": 9099015,
                            "vd": -54627
                        },
                        "m": {
                            "br": 192000,
                            "fid": 0,
                            "size": 5459426,
                            "vd": -52078
                        },
                        "l": {
                            "br": 128000,
                            "fid": 0,
                            "size": 3639632,
                            "vd": -50636
                        },
                        "a": null,
                        "cd": "2",
                        "no": 1,
                        "rtUrl": null,
                        "ftype": 0,
                        "rtUrls": [],
                        "djId": 0,
                        "copyright": 0,
                        "s_id": 0,
                        "mst": 9,
                        "rtype": 0,
                        "rurl": null,
                        "cp": 7003,
                        "mv": 0,
                        "publishTime": 1143820800000,
                        "privilege": {
                            "id": 120869,
                            "fee": 8,
                            "payed": 0,
                            "st": 0,
                            "pl": 128000,
                            "dl": 0,
                            "sp": 7,
                            "cp": 1,
                            "subp": 1,
                            "cs": false,
                            "maxbr": 999000,
                            "fl": 128000,
                            "toast": false,
                            "flag": 4,
                            "preSell": false
                        }
                    }
                ],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "7A6C6E9D7EF1407C94E02755B2614EE6",
                "durationms": 341426,
                "playTime": 1299112,
                "praisedCount": 4847,
                "praised": false,
                "subscribed": false
            }
        },
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_EC2A6EF08A35FBD0985B3EF864B299BB",
                "coverUrl": "https://p2.music.126.net/QNSuvuFvtxpjvyGJQTQRLQ==/109951164981161255.jpg",
                "height": 720,
                "width": 1280,
                "title": "二手玫瑰 如你所愿",
                "description": null,
                "commentCount": 509,
                "shareCount": 1164,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 16885950
                    },
                    {
                        "resolution": 480,
                        "size": 28668655
                    },
                    {
                        "resolution": 720,
                        "size": 40540850
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 110000,
                    "authStatus": 0,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/A8G3tiZX3XtD5W0qCLQT6w==/109951165041288276.jpg",
                    "accountStatus": 0,
                    "gender": 2,
                    "city": 110105,
                    "birthday": -2209017600000,
                    "userId": 37067957,
                    "userType": 204,
                    "nickname": "C大调的姑娘",
                    "signature": "ROCK GIRL🤘🏼",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 109951165041288270,
                    "backgroundImgId": 109951165942328300,
                    "backgroundUrl": "http://p1.music.126.net/pCYxiHSUMBpr2vrOKYXVKA==/109951165942328307.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": null,
                    "djStatus": 10,
                    "vipType": 11,
                    "remarkName": null,
                    "avatarImgIdStr": "109951165041288276",
                    "backgroundImgIdStr": "109951165942328307"
                },
                "urlInfo": {
                    "id": "EC2A6EF08A35FBD0985B3EF864B299BB",
                    "url": "http://vodkgeyttp9.vod.126.net/cloudmusic/UJ1j298X_2997528285_shd.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=JWnRkDIVXvGMlCJUULuoZFCvBJAsbaxF&sign=053e126879e72d8b01f0d4b844f05072&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 40540850,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 720
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 59101,
                        "name": "华语现场",
                        "alg": null
                    },
                    {
                        "id": 57110,
                        "name": "饭拍现场",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": null,
                "relateSong": [],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "EC2A6EF08A35FBD0985B3EF864B299BB",
                "durationms": 133000,
                "playTime": 1235623,
                "praisedCount": 4720,
                "praised": false,
                "subscribed": false
            }
        },
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_ECF29481B5D286776C9728BDCCB3DA4F",
                "coverUrl": "https://p2.music.126.net/DkcNA1ERlOzzx5V3D3QjTw==/109951163043761349.jpg",
                "height": 720,
                "width": 1280,
                "title": "《曾经的你》许巍最燃的一个现场版本，李延亮也帅炸了",
                "description": "《曾经的你》许巍最燃的一个现场版本，李延亮也帅炸了，许巍的歌总是很直接，不拐弯抹角直击心底",
                "commentCount": 4228,
                "shareCount": 16363,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 18126293
                    },
                    {
                        "resolution": 480,
                        "size": 39055786
                    },
                    {
                        "resolution": 720,
                        "size": 70290507
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 440000,
                    "authStatus": 0,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/ISYw2b6t1ZrJn4ln-eDOWw==/109951163099991417.jpg",
                    "accountStatus": 0,
                    "gender": 2,
                    "city": 440100,
                    "birthday": 843148800000,
                    "userId": 381268157,
                    "userType": 0,
                    "nickname": "热点音乐HeatsMusic",
                    "signature": "分享点音乐，偶尔怀旧。",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 109951163099991420,
                    "backgroundImgId": 109951163030912370,
                    "backgroundUrl": "http://p1.music.126.net/fDxOUzoFYrM3rNYQiEbLjA==/109951163030912368.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": {
                        "1": "音乐视频达人"
                    },
                    "djStatus": 0,
                    "vipType": 0,
                    "remarkName": null,
                    "avatarImgIdStr": "109951163099991417",
                    "backgroundImgIdStr": "109951163030912368"
                },
                "urlInfo": {
                    "id": "ECF29481B5D286776C9728BDCCB3DA4F",
                    "url": "http://vodkgeyttp9.vod.126.net/cloudmusic/cc73e6b64f282c3072f7f6458dcc3374.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=WPpjsvsxEqkktDFCScEJQWJlQYToJPob&sign=b4d13bde131161feaefb91bb1366d2da&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 70290507,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 720
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 1100,
                        "name": "音乐现场",
                        "alg": null
                    },
                    {
                        "id": 4105,
                        "name": "摇滚",
                        "alg": null
                    },
                    {
                        "id": 5100,
                        "name": "音乐",
                        "alg": null
                    },
                    {
                        "id": 24134,
                        "name": "弹唱",
                        "alg": null
                    },
                    {
                        "id": 13222,
                        "name": "华语",
                        "alg": null
                    },
                    {
                        "id": 13223,
                        "name": "许巍",
                        "alg": null
                    },
                    {
                        "id": 16201,
                        "name": "温暖",
                        "alg": null
                    },
                    {
                        "id": 16170,
                        "name": "吉他",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": null,
                "relateSong": [
                    {
                        "name": "曾经的你",
                        "id": 167804,
                        "pst": 0,
                        "t": 0,
                        "ar": [
                            {
                                "id": 5770,
                                "name": "许巍",
                                "tns": [],
                                "alias": []
                            }
                        ],
                        "alia": [],
                        "pop": 100,
                        "st": 0,
                        "rt": "600902000001024133",
                        "fee": 1,
                        "v": 38,
                        "crbt": null,
                        "cf": "",
                        "al": {
                            "id": 16946,
                            "name": "曾经的你",
                            "picUrl": "http://p3.music.126.net/OHzbyGhLdNatFNExPNkD4Q==/6670737045790111.jpg",
                            "tns": [],
                            "pic": 6670737045790111
                        },
                        "dt": 261000,
                        "h": {
                            "br": 320000,
                            "fid": 0,
                            "size": 10459598,
                            "vd": 71
                        },
                        "m": {
                            "br": 192000,
                            "fid": 0,
                            "size": 6275827,
                            "vd": -2
                        },
                        "l": {
                            "br": 128000,
                            "fid": 0,
                            "size": 4183941,
                            "vd": 0
                        },
                        "a": null,
                        "cd": "1",
                        "no": 3,
                        "rtUrl": null,
                        "ftype": 0,
                        "rtUrls": [],
                        "djId": 0,
                        "copyright": 0,
                        "s_id": 0,
                        "mst": 9,
                        "rtype": 0,
                        "rurl": null,
                        "cp": 13009,
                        "mv": 5300126,
                        "publishTime": 1157040000000,
                        "privilege": {
                            "id": 167804,
                            "fee": 1,
                            "payed": 0,
                            "st": 0,
                            "pl": 0,
                            "dl": 0,
                            "sp": 0,
                            "cp": 0,
                            "subp": 0,
                            "cs": false,
                            "maxbr": 999000,
                            "fl": 0,
                            "toast": false,
                            "flag": 260,
                            "preSell": false
                        }
                    }
                ],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "ECF29481B5D286776C9728BDCCB3DA4F",
                "durationms": 391787,
                "playTime": 5551595,
                "praisedCount": 43285,
                "praised": false,
                "subscribed": false
            }
        },
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_A8DC4F82473F218B6F4A7560110BDF72",
                "coverUrl": "https://p2.music.126.net/54CsmlqzBwnGW3xUGI4ahw==/109951163804307053.jpg",
                "height": 1080,
                "width": 1920,
                "title": "本可成为张学友，却一心想当周星驰",
                "description": "本可成为张学友，却一心想当周星驰，他的这首歌，唱哭无数人",
                "commentCount": 1351,
                "shareCount": 1113,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 39751840
                    },
                    {
                        "resolution": 480,
                        "size": 69914355
                    },
                    {
                        "resolution": 720,
                        "size": 110467469
                    },
                    {
                        "resolution": 1080,
                        "size": 129835812
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 110000,
                    "authStatus": 1,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/fQU_-56Vd8ld9kqvG_Rw1g==/3300733910865692.jpg",
                    "accountStatus": 0,
                    "gender": 1,
                    "city": 110101,
                    "birthday": 720353563017,
                    "userId": 106810354,
                    "userType": 4,
                    "nickname": "中国音乐人",
                    "signature": "我是偷影子的人，\n随风化成一朵云。",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 3300733910865692,
                    "backgroundImgId": 109951164271452850,
                    "backgroundUrl": "http://p1.music.126.net/erbAKtwUefQuR1CJdEverQ==/109951164271452845.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": null,
                    "djStatus": 10,
                    "vipType": 11,
                    "remarkName": null,
                    "avatarImgIdStr": "3300733910865692",
                    "backgroundImgIdStr": "109951164271452845"
                },
                "urlInfo": {
                    "id": "A8DC4F82473F218B6F4A7560110BDF72",
                    "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/MIsdYPUt_2258957983_uhd.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=BJiUXuHnGHQwaIhJFEGwlApHhakmOfgZ&sign=61a7ed77e1c369262a23d503e1887497&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 129835812,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 1080
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 57105,
                        "name": "粤语现场",
                        "alg": null
                    },
                    {
                        "id": 57108,
                        "name": "流行现场",
                        "alg": null
                    },
                    {
                        "id": 57110,
                        "name": "饭拍现场",
                        "alg": null
                    },
                    {
                        "id": 1100,
                        "name": "音乐现场",
                        "alg": null
                    },
                    {
                        "id": 5100,
                        "name": "音乐",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": null,
                "relateSong": [
                    {
                        "name": "无赖",
                        "id": 191171,
                        "pst": 0,
                        "t": 0,
                        "ar": [
                            {
                                "id": 6473,
                                "name": "郑中基",
                                "tns": [],
                                "alias": []
                            }
                        ],
                        "alia": [],
                        "pop": 100,
                        "st": 0,
                        "rt": "600902000005652669",
                        "fee": 8,
                        "v": 110,
                        "crbt": null,
                        "cf": "",
                        "al": {
                            "id": 19313,
                            "name": "正宗K",
                            "picUrl": "http://p4.music.126.net/2vFBKWUmF_jiWGaBgO6RaA==/17648261137761966.jpg",
                            "tns": [],
                            "pic_str": "17648261137761966",
                            "pic": 17648261137761966
                        },
                        "dt": 243827,
                        "h": {
                            "br": 320000,
                            "fid": 0,
                            "size": 9756256,
                            "vd": -18600
                        },
                        "m": {
                            "br": 192000,
                            "fid": 0,
                            "size": 5853771,
                            "vd": -16000
                        },
                        "l": {
                            "br": 128000,
                            "fid": 0,
                            "size": 3902528,
                            "vd": -14500
                        },
                        "a": null,
                        "cd": "1",
                        "no": 3,
                        "rtUrl": null,
                        "ftype": 0,
                        "rtUrls": [],
                        "djId": 0,
                        "copyright": 1,
                        "s_id": 0,
                        "mst": 9,
                        "rtype": 0,
                        "rurl": null,
                        "cp": 7002,
                        "mv": 0,
                        "publishTime": 1143849600000,
                        "privilege": {
                            "id": 191171,
                            "fee": 8,
                            "payed": 0,
                            "st": 0,
                            "pl": 128000,
                            "dl": 0,
                            "sp": 7,
                            "cp": 1,
                            "subp": 1,
                            "cs": false,
                            "maxbr": 999000,
                            "fl": 128000,
                            "toast": false,
                            "flag": 256,
                            "preSell": false
                        }
                    }
                ],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "A8DC4F82473F218B6F4A7560110BDF72",
                "durationms": 291834,
                "playTime": 4134811,
                "praisedCount": 12733,
                "praised": false,
                "subscribed": false
            }
        },
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_EB006B4952286B0182C56B0B9964B5B3",
                "coverUrl": "https://p2.music.126.net/zc6xdJYGzKVQMWzgMBRxaA==/109951164186357210.jpg",
                "height": 720,
                "width": 1280,
                "title": "这可能就是种族天赋吧……",
                "description": null,
                "commentCount": 203,
                "shareCount": 154,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 10244109
                    },
                    {
                        "resolution": 480,
                        "size": 16205432
                    },
                    {
                        "resolution": 720,
                        "size": 22837897
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 320000,
                    "authStatus": 1,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/ehZVThg1aa7qbM7Y6CTi3g==/109951163233342369.jpg",
                    "accountStatus": 0,
                    "gender": 1,
                    "city": 320400,
                    "birthday": 944668800000,
                    "userId": 1360942256,
                    "userType": 4,
                    "nickname": "Melohxx",
                    "signature": "",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 109951163233342370,
                    "backgroundImgId": 109951164294098340,
                    "backgroundUrl": "http://p1.music.126.net/bUBIxLwDYkVDMa-mUPFtlQ==/109951164294098331.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": null,
                    "djStatus": 10,
                    "vipType": 0,
                    "remarkName": null,
                    "avatarImgIdStr": "109951163233342369",
                    "backgroundImgIdStr": "109951164294098331"
                },
                "urlInfo": {
                    "id": "EB006B4952286B0182C56B0B9964B5B3",
                    "url": "http://vodkgeyttp9.vod.126.net/cloudmusic/tVXw4zwR_2571625094_shd.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=EykTTxQrHNjkhaiLMwSZzadHoWJISFuQ&sign=9207e8ecbc1069b5509bd526e10338d0&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 22837897,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 720
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 5100,
                        "name": "音乐",
                        "alg": null
                    },
                    {
                        "id": 4101,
                        "name": "娱乐",
                        "alg": null
                    },
                    {
                        "id": 3101,
                        "name": "综艺",
                        "alg": null
                    },
                    {
                        "id": 75122,
                        "name": "欧美综艺",
                        "alg": null
                    },
                    {
                        "id": 76108,
                        "name": "综艺片段",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": null,
                "relateSong": [
                    {
                        "name": "Roses",
                        "id": 27902568,
                        "pst": 0,
                        "t": 0,
                        "ar": [
                            {
                                "id": 673004,
                                "name": "James Arthur",
                                "tns": [],
                                "alias": []
                            }
                        ],
                        "alia": [],
                        "pop": 25,
                        "st": 0,
                        "rt": "",
                        "fee": 8,
                        "v": 17,
                        "crbt": null,
                        "cf": "",
                        "al": {
                            "id": 2692169,
                            "name": "James Arthur",
                            "picUrl": "http://p3.music.126.net/ximjL73_YYnNciSVJMkWjA==/109951165968576422.jpg",
                            "tns": [],
                            "pic_str": "109951165968576422",
                            "pic": 109951165968576420
                        },
                        "dt": 254328,
                        "h": {
                            "br": 320000,
                            "fid": 0,
                            "size": 10174215,
                            "vd": -41961
                        },
                        "m": {
                            "br": 192000,
                            "fid": 0,
                            "size": 6104546,
                            "vd": -39402
                        },
                        "l": {
                            "br": 128000,
                            "fid": 0,
                            "size": 4069712,
                            "vd": -37646
                        },
                        "a": null,
                        "cd": "1",
                        "no": 7,
                        "rtUrl": null,
                        "ftype": 0,
                        "rtUrls": [],
                        "djId": 0,
                        "copyright": 1,
                        "s_id": 0,
                        "mst": 9,
                        "rtype": 0,
                        "rurl": null,
                        "cp": 7001,
                        "mv": 0,
                        "publishTime": 1383494400000,
                        "privilege": {
                            "id": 27902568,
                            "fee": 8,
                            "payed": 0,
                            "st": 0,
                            "pl": 128000,
                            "dl": 0,
                            "sp": 7,
                            "cp": 1,
                            "subp": 1,
                            "cs": false,
                            "maxbr": 320000,
                            "fl": 128000,
                            "toast": false,
                            "flag": 4,
                            "preSell": false
                        }
                    }
                ],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "EB006B4952286B0182C56B0B9964B5B3",
                "durationms": 100000,
                "playTime": 739825,
                "praisedCount": 2499,
                "praised": false,
                "subscribed": false
            }
        },
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_FE976D15BDC339DE38B7705189D83B89",
                "coverUrl": "https://p2.music.126.net/JxcAF0e3_cUe0sQAUdlmyw==/109951163693144661.jpg",
                "height": 540,
                "width": 1050,
                "title": "当年这首歌红遍了亚洲，70、80后的都会哼的歌声！前奏一起全是回忆",
                "description": null,
                "commentCount": 643,
                "shareCount": 673,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 38446877
                    },
                    {
                        "resolution": 480,
                        "size": 88422042
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 110000,
                    "authStatus": 0,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/yWQieIcccog6GW9W65N6VQ==/109951164162893023.jpg",
                    "accountStatus": 0,
                    "gender": 0,
                    "city": 110101,
                    "birthday": -2209017600000,
                    "userId": 1471220191,
                    "userType": 0,
                    "nickname": "耳朵听了会怀孕啊",
                    "signature": "",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 109951164162893020,
                    "backgroundImgId": 109951162868126480,
                    "backgroundUrl": "http://p1.music.126.net/_f8R60U9mZ42sSNvdPn2sQ==/109951162868126486.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": {
                        "1": "泛生活视频达人"
                    },
                    "djStatus": 0,
                    "vipType": 0,
                    "remarkName": null,
                    "avatarImgIdStr": "109951164162893023",
                    "backgroundImgIdStr": "109951162868126486"
                },
                "urlInfo": {
                    "id": "FE976D15BDC339DE38B7705189D83B89",
                    "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/IK59kZwZ_1787477917_hd.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=GBCLyIpliRMSNzbayVvKmpOOrslXVpgc&sign=12f0b785ad9e754ba5e1a9cacb8b946d&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 88422042,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 480
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 57107,
                        "name": "韩语现场",
                        "alg": null
                    },
                    {
                        "id": 57108,
                        "name": "流行现场",
                        "alg": null
                    },
                    {
                        "id": 59108,
                        "name": "巡演现场",
                        "alg": null
                    },
                    {
                        "id": 1100,
                        "name": "音乐现场",
                        "alg": null
                    },
                    {
                        "id": 5100,
                        "name": "音乐",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": [
                    109
                ],
                "relateSong": [],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "FE976D15BDC339DE38B7705189D83B89",
                "durationms": 182165,
                "playTime": 1464729,
                "praisedCount": 3912,
                "praised": false,
                "subscribed": false
            }
        },
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_8D80A3A4A5B16B6C6AD6148D07E0DD37",
                "coverUrl": "https://p2.music.126.net/Xg_qxdqZmQPKp3pHq-1gog==/109951163990473323.jpg",
                "height": 1080,
                "width": 1920,
                "title": "前方核能！超燃神曲现场版，万人音乐演唱会现场太疯狂！",
                "description": "人气女王花泽香菜的《恋爱循环》有没有一种让你心动的感觉呢？《only my railgun》现任主唱南条爱乃，也是被称为最燃现场持有者，歌曲是TV动画《某科学的超电磁炮》的片头曲，《极乐净土》由90后MARIA演唱的歌曲，旋律血洗各大网站，舞蹈也是被疯狂模仿，日本，音乐现场，动漫。",
                "commentCount": 544,
                "shareCount": 594,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 38822367
                    },
                    {
                        "resolution": 480,
                        "size": 51231685
                    },
                    {
                        "resolution": 720,
                        "size": 75387184
                    },
                    {
                        "resolution": 1080,
                        "size": 135720569
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 320000,
                    "authStatus": 0,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/8Y1SU7AOluwwydYEFbXwMw==/109951163801847081.jpg",
                    "accountStatus": 0,
                    "gender": 0,
                    "city": 320700,
                    "birthday": 684774000000,
                    "userId": 1425128922,
                    "userType": 0,
                    "nickname": "零点音乐秀",
                    "signature": "分享国内外好听的歌曲，给您不一样的音乐感受！",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 109951163801847090,
                    "backgroundImgId": 109951162868128400,
                    "backgroundUrl": "http://p1.music.126.net/2zSNIqTcpHL2jIvU6hG0EA==/109951162868128395.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": null,
                    "djStatus": 0,
                    "vipType": 0,
                    "remarkName": null,
                    "avatarImgIdStr": "109951163801847081",
                    "backgroundImgIdStr": "109951162868128395"
                },
                "urlInfo": {
                    "id": "8D80A3A4A5B16B6C6AD6148D07E0DD37",
                    "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/GwI566d5_2436744142_uhd.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=kKZPECLACabZxHGMPQveURraENLGcKoE&sign=2323acf5f73d727f0107e5cf57e9865c&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 135720569,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 1080
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 1101,
                        "name": "舞蹈",
                        "alg": null
                    },
                    {
                        "id": 1105,
                        "name": "最佳饭制",
                        "alg": null
                    },
                    {
                        "id": 60101,
                        "name": "日语现场",
                        "alg": null
                    },
                    {
                        "id": 57108,
                        "name": "流行现场",
                        "alg": null
                    },
                    {
                        "id": 3110,
                        "name": "宅舞",
                        "alg": null
                    },
                    {
                        "id": 1100,
                        "name": "音乐现场",
                        "alg": null
                    },
                    {
                        "id": 5100,
                        "name": "音乐",
                        "alg": null
                    },
                    {
                        "id": 15241,
                        "name": "饭制",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": null,
                "relateSong": [],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "8D80A3A4A5B16B6C6AD6148D07E0DD37",
                "durationms": 200170,
                "playTime": 4926137,
                "praisedCount": 12478,
                "praised": false,
                "subscribed": false
            }
        },
        {
            "type": 1,
            "displayed": false,
            "alg": "onlineHotGroup",
            "extAlg": null,
            "data": {
                "alg": "onlineHotGroup",
                "scm": "1.music-video-timeline.video_timeline.video.181017.-295043608",
                "threadId": "R_VI_62_C9D036D2165E6DEFED453CBF6C48B3A8",
                "coverUrl": "https://p2.music.126.net/vUVC7mkIe0e3HYpi3v3d_g==/109951163766545305.jpg",
                "height": 720,
                "width": 1280,
                "title": "这首《情人》我循环100遍都听不够~",
                "description": "",
                "commentCount": 1530,
                "shareCount": 1235,
                "resolutions": [
                    {
                        "resolution": 240,
                        "size": 32618181
                    },
                    {
                        "resolution": 480,
                        "size": 52720666
                    },
                    {
                        "resolution": 720,
                        "size": 80844767
                    }
                ],
                "creator": {
                    "defaultAvatar": false,
                    "province": 440000,
                    "authStatus": 0,
                    "followed": false,
                    "avatarUrl": "http://p1.music.126.net/nRh8YmswARfHK1awVwislA==/19098516974768328.jpg",
                    "accountStatus": 0,
                    "gender": 2,
                    "city": 440300,
                    "birthday": 1483200000000,
                    "userId": 552994360,
                    "userType": 0,
                    "nickname": "阿狸文化",
                    "signature": "用最短的时间，捕捉最好的内容。",
                    "description": "",
                    "detailDescription": "",
                    "avatarImgId": 19098516974768330,
                    "backgroundImgId": 109951162868128400,
                    "backgroundUrl": "http://p1.music.126.net/2zSNIqTcpHL2jIvU6hG0EA==/109951162868128395.jpg",
                    "authority": 0,
                    "mutual": false,
                    "expertTags": null,
                    "experts": {
                        "1": "音乐视频达人"
                    },
                    "djStatus": 10,
                    "vipType": 0,
                    "remarkName": null,
                    "avatarImgIdStr": "19098516974768328",
                    "backgroundImgIdStr": "109951162868128395"
                },
                "urlInfo": {
                    "id": "C9D036D2165E6DEFED453CBF6C48B3A8",
                    "url": "http://vodkgeyttp9.vod.126.net/vodkgeyttp8/jm5M5qHW_2230245002_shd.mp4?ts=1629717482&rid=CB1519403E7A46227D5B1BF3E896C929&rl=3&rs=bBMeupSIesbFOXZetKaFSsgqatYbgPuA&sign=cf1107de96d05a83e0599736ea5c83f2&ext=26rnQ1DRKLFfQAVo1gQyxBTgUq8NeTtAbGorP5CHPXBNSP7zss3bNtF%2BCKrcIij1m2%2BmAGkkCSg9%2BbvbMWTj8tUciKVfA6Bd9TGEV1kYo5W4DPxSg7R97e5fH4YkYMgAqsULoCocM38S4FN8dTmuZXDv%2BGMcxf1LPNa%2B5xF6kLc5ZnsgF%2BpJl%2B9jJ5RVhzQR6%2FcPco%2BfN%2FiifgzlVb7y%2BgAYVl%2B0YZ7HEUV9VOhA6mNayJZVnv7vKKpnkLqFCZhH",
                    "size": 80844767,
                    "validityTime": 1200,
                    "needPay": false,
                    "payInfo": null,
                    "r": 720
                },
                "videoGroup": [
                    {
                        "id": 58100,
                        "name": "现场",
                        "alg": null
                    },
                    {
                        "id": 57105,
                        "name": "粤语现场",
                        "alg": null
                    },
                    {
                        "id": 57108,
                        "name": "流行现场",
                        "alg": null
                    },
                    {
                        "id": 59108,
                        "name": "巡演现场",
                        "alg": null
                    },
                    {
                        "id": 1100,
                        "name": "音乐现场",
                        "alg": null
                    },
                    {
                        "id": 5100,
                        "name": "音乐",
                        "alg": null
                    }
                ],
                "previewUrl": null,
                "previewDurationms": 0,
                "hasRelatedGameAd": false,
                "markTypes": [
                    111
                ],
                "relateSong": [
                    {
                        "name": "情人",
                        "id": 347355,
                        "pst": 0,
                        "t": 0,
                        "ar": [
                            {
                                "id": 11127,
                                "name": "Beyond",
                                "tns": [],
                                "alias": []
                            }
                        ],
                        "alia": [],
                        "pop": 100,
                        "st": 0,
                        "rt": "600902000005377218",
                        "fee": 1,
                        "v": 315,
                        "crbt": null,
                        "cf": "",
                        "al": {
                            "id": 34222,
                            "name": "乐与怒",
                            "picUrl": "http://p3.music.126.net/jTdZ8-93wYOCquz9t9i5SA==/109951165564569256.jpg",
                            "tns": [],
                            "pic_str": "109951165564569256",
                            "pic": 109951165564569250
                        },
                        "dt": 317000,
                        "h": {
                            "br": 320000,
                            "fid": 0,
                            "size": 12683014,
                            "vd": -2
                        },
                        "m": {
                            "br": 192000,
                            "fid": 0,
                            "size": 7609825,
                            "vd": -2
                        },
                        "l": {
                            "br": 128000,
                            "fid": 0,
                            "size": 5073231,
                            "vd": -2
                        },
                        "a": null,
                        "cd": "1",
                        "no": 10,
                        "rtUrl": null,
                        "ftype": 0,
                        "rtUrls": [],
                        "djId": 0,
                        "copyright": 1,
                        "s_id": 0,
                        "mst": 9,
                        "rtype": 0,
                        "rurl": null,
                        "cp": 7002,
                        "mv": 5336910,
                        "publishTime": 736185600000,
                        "tns": [
                            "The Lover"
                        ],
                        "privilege": {
                            "id": 347355,
                            "fee": 1,
                            "payed": 0,
                            "st": 0,
                            "pl": 0,
                            "dl": 0,
                            "sp": 0,
                            "cp": 0,
                            "subp": 0,
                            "cs": false,
                            "maxbr": 999000,
                            "fl": 0,
                            "toast": false,
                            "flag": 260,
                            "preSell": false
                        }
                    }
                ],
                "relatedInfo": null,
                "videoUserLiveInfo": null,
                "vid": "C9D036D2165E6DEFED453CBF6C48B3A8",
                "durationms": 333333,
                "playTime": 3163686,
                "praisedCount": 11586,
                "praised": false,
                "subscribed": false
            }
        }
    ]
    const {videoGroup} = this.data
    videoGroup.push(...newVideoList)
    this.setData({
      videoGroup
    })
  },
  handleSearch(){
    wx.navigateTo({
      url: '/pages/search/search',
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function ({from}) {
    if(from === 'button'){
      return {
        title: '来自button的转发',
        path: '/pages/video/video',
        imageUrl: '/static/images/nvsheng.jpg'
      }
    }else {
      return {
        title: '来自menu的转发',
        path: '/pages/video/video',
        imageUrl: '/static/images/nvsheng.jpg'
      }
    }
  }
})